<?php

go(function(){

	$client = new Swoole\Coroutine\Client(SWOOLE_SOCK_TCP);

	if(!$client->connect('127.0.0.1',9501)){
		echo  "链接失败：".$client->errCode.PHP_EOL;
	}else{

		$client->send('测试协程客户端');

		echo $client->recv();

		$client->close();
	}


});